package com.gt.aep.base.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Data
@Configuration
@ConfigurationProperties(prefix = "data")
//如果只有一个主配置类文件，@PropertySource可以不写
@PropertySource("classpath:application.properties")
public class DataConfig {
    private List<Map<String,Object>> userPermission;
    private List<String> permList = new ArrayList<>();
}
